package com.zhiyou100.mapper;

import com.zhiyou100.entity.Student;

import java.util.List;

/**
 * @author yang
 */
public interface StudentMapper {
    /**
     * get one student by sid
     *
     * @param sid get sid
     * @return com.zhiyou100.entity.Student
     */
    Student getBuSid(int sid);


    /**
     * get all Student
     *
     * @return java.util.List
     */
    List<Student> getAll();

    /**
     * dle one by sid
     *
     * @param sid get one sid
     * @return void
     * @date 8/14/20 17:34
     */
    void deleteOneBySid(int sid);

    /**
     * update one by student
     *
     * @param student get one by Student
     * @return void
     * @name updateOne
     * @date 8/14/20 17:36
     * @author yang
     */
    void updateOne(Student student);

    /**
     * add one by student
     *
     * @param student from student
     * @return void
     * @name `addOne`
     * @date 8/14/20 17:38
     * @author yang
     */
    void addOne(Student student);
}
